<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>	
<%@page import="com.yaodian100.mall.member.util.UserData"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="pu" uri="/WEB-INF/tld/pageutil.tld" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 	
<%@page import="com.yaodian100.ec.order.entity.Orders"%>
<%@page import="com.yaodian100.ec.order.entity.OrderProductDetail"%>
<%@page import="java.util.List"%> 
<c-rt:set var="imgDomain"><%=ServerValue.getImgDomain()%></c-rt:set>
<style>
.promo-popup{padding:10px;*padding:10px 0 10px 8px; color:#666;line-height:1.4em; }
.promo-popup h2,.promo-popup h3{font-size:15px;color:#d12e6f; margin-bottom:.8em;}
.promo-popup h3{color:#666;}
.promo-popup p{margin:.5em 0;}
.promo-popup .d-line{background:url(/images/link_dote.gif) repeat-x scroll 0 50%; padding:1px 0;}
.promo-popup ol,.promo-popup ul{margin-bottom:1em;margin-left:2em;}
.promo-popup li{list-style:decimal;}
</style>
<c-rt:set var="frontContextPath" value='<%=ServerValue.getFrontContextPath()%>'/>
<c-rt:set var="bfdCode" value='<%=ServerValue.getBfdCode()%>'/>
<c-rt:set var="useCreditcardPeriod" value='<%=ServerValue.getUseCreditcardPeriod()%>'/>
<%UserData userData = new UserData(request,response);%>
<script type="text/javascript">
	var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F6a111b05a752ae5640228a730c7ff791' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
	$().ready(function() {			
		$("#postOffice").click(function(){
			openDialog("邮局汇款单范例",$("#divPostOffice").load("/pages/CART/step03_demo_postoffice.html"),600,600);	
		});
		$("#bank").click(function(){
			openDialog("银行转帐单范例",$("#divBank").load("/pages/CART/step03_demo_bank.html"),700,500);	
		});

		//赠品数量不足时
		$("#chkPinvyDialog").dialog({
			bgiframe: true,
			autoOpen: false,
			height: 200,
			width:400,
			modal: true
		});		

		//赠品数量不足时(立即購買)
		$("#chkPinvyObnDialog").dialog({
			bgiframe: true,
			autoOpen: false,
			height: 200,
			width:400,
			modal: true
		});		

		$('#mainProdNotEnough').click(function(){
			location.href='/ecmall/shopping/cart.do';
			return false;
		});

		$('#mainProdNotEnoughObn').click(function(){
			getReturnUrl();
			 return false;
		});

		//赠品数量不足时-修改数量
		$("#presentNotEnough").click(function(){
			location.href="<%=ServerValue.getFrontContextPath()%>/shopping/cart.do";
			return false;
			$("#chkPinvyDialog").dialog('close');
		});	
		//赠品数量不足时-我要继续结帐
		$("#inv_submit").click(function(){
			$("#chkPinvyDialog").dialog('close');
			$("#paymentInfoForm").submit();
			return false;
		});	

		//赠品数量不足时-修改数量(立即購買)
		$("#presentObnNotEnough").click(function(){
			getReturnUrl();
			return false;
			$("#chkPinvyObnDialog").dialog('close');
		});	
		//赠品数量不足时-我要继续结帐(立即購買)
		$("#inv_Obnsubmit").click(function(){
			$("#chkPinvyObnDialog").dialog('close');
			$("#paymentInfoForm").submit();
			return false;
		});	
		//购物金&礼券择一使用(立即购买)
		$("#goProd").click(function(){
			getReturnUrl();
			return false;
			$("#chkCouponAndBonusDialog").dialog('close');
			return false;
		});
		//购物金&礼券择一使用(购物车)
		$("#goCart").click(function(){
			location.href="<%=ServerValue.getFrontContextPath()%>/shopping/cart.do";
			return false;
			$("#chkCouponAndBonusDialog").dialog('close');
		});
		//购物金&礼券择一使用(立即购买)
		$("#goValidateProd").click(function(){
			getReturnUrl();
			return false;
			$("#chkValidateNumDialog").dialog('close');
			return false;
		});
		//购物金&礼券择一使用(购物车)
		$("#goValidateCart").click(function(){
			location.href="<%=ServerValue.getFrontContextPath()%>/shopping/cart.do";
			return false;
			$("#chkValidateNumDialog").dialog('close');
		});
		//恶意订单网上支付／银行支付／邮局汇款需特别提示付款期限
		$("#alertPayDeadLineDialog").dialog({
			bgiframe: true,
			autoOpen: false,
			height: 200,
			width:400,
			modal: true
		});			

		$("#alertPayDeadLineDialogbn").click(function(){
			$("#alertPayDeadLineDialog").dialog('close');
			return false;
		});
		//毛 利率檢查
		$("#goPage").click(function(){
			if ( "buy" == $("#returnPage").val() ){
				getReturnUrl();
			}else{
				location.href="<%=ServerValue.getFrontContextPath()%>/shopping/cart.do";
			}
			return false;
			$("#chkGrossProfitRateDialog").dialog('close');
		});
		 if ( ${orders.paymentTp=='50' || orders.paymentTp=='10' || orders.paymentTp=='20'}){
			  if ( ${orderMemoAlert=='orderMemoAlert'}){
					$('#alertPayDeadLineDialog').dialog('destroy');
					$('#alertPayDeadLineDialog').dialog({
						closeOnEscape: false,
						open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
						bgiframe: true,
						width:380,
						modal: true
					});
				}	
		 }
	});
	function getReturnUrl() {
	   //var getURL = getCookie("_1.100.TL").split("=")[1]+"="+getCookie("_1.100.TL").split("=")[2];
	   var getURL="<%=userData.readRawValue(UserData.NAME_YAODIAN100_TL_RS)%>";
	   if(getURL==''){getURL="<%=ServerValue.getFrontHostname()%>"};
	   location.href=getURL;
	   return false;
	}
</script>
<!-- Google Code for &#36141;&#20080; Conversion Page -->
<script type="text/javascript">
<!--
var google_conversion_id = 1020816939;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "Imm_CPXQ2AEQq9zh5gM";
var google_conversion_value = 0;
//-->
</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1020816939/?label=Imm_CPXQ2AEQq9zh5gM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<s:form action="paymentInfo/paymentInfo.do" id="paymentInfoForm" name="paymentInfoForm" method="post">
<input type=hidden name="reqMap" value=${reqMap}/>
</s:form>
<!-- content start --> 
<div id="container"> 
   <div class="order-step"><img src="/images/orderstep_3.gif" alt="订购步骤3_订购完成" /></div>
   <s:if test="hasActionMessages()">
				<!-- 
				<p>
				<span class="msg rn"><s:actionmessage/></span>
				</p>
				 -->
				  <s:iterator value="actionMessages">  
				<script>
				$().ready(function() {	
					var actionMessage="<s:property escape='false'/>";
						if(actionMessage=="1" || actionMessage=="3" ){
							var content ="<div class='alert-caution'><p>每档限时秒杀活动，<b class='txt-rd'>同一帐号限购一项商品。</b><br />您可参加下一档秒杀活动喔，谢谢您！</p><div align='center'><a href='javascript:getReturnUrl();closeDialog();' class='btn-mid' onfocus='blur()'>回上一页</a><a  href='javascript:getReturnUrl();closeDialog();' class='btn-mid'>关闭</a></div></div>";
							openDialog("活动信息",content,370,'auto');
						}else if(actionMessage=="notSupport"){
							var content ="<div class='alert-caution'><p>不支援门店取货！</p><div align='center'><a href='javascript:getReturnUrl();closeDialog();' class='btn-mid' onfocus='blur()'>回上一页</a><a  href='javascript:getReturnUrl();closeDialog();' class='btn-mid'>关闭</a></div></div>";
							openDialog("活动信息",content,370,'auto');
						}else if(actionMessage=="0"){
							$.post("/ecmall/nonMember/checkLogin.do",{},nonMemberTimeLimitCartCallback,"json");
						}else{
         			//alert("<s:property escape="false"/>")  
							//var content="<s:property escape='false'/>";
							if(actionMessage.indexOf('商品页')>0){
								if(actionMessage.indexOf('赠品')>0){
									$("#chkPinvyObnDialog > p").eq(0).html(actionMessage);
									$('#chkPinvyObnDialog').dialog('destroy');
									$('#chkPinvyObnDialog').dialog({
										closeOnEscape: false,
										open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
										bgiframe: true,
										width:380,
										modal: true
									});
								}else{
									$("#chkProdInvObnDialog > p").eq(0).html(actionMessage);
									$('#chkProdInvObnDialog').dialog('destroy');
									$('#chkProdInvObnDialog').dialog({
										closeOnEscape: false,
										open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
										bgiframe: true,
										width:380,
										modal: true
									});
								}
							}
							if(actionMessage.indexOf('购物车')>0){
								if(actionMessage.indexOf('赠品')>0){
									$("#chkPinvyDialog > p").eq(0).html(actionMessage);
									$('#chkPinvyDialog').dialog('destroy');
									$('#chkPinvyDialog').dialog({
										closeOnEscape: false,
										open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
										bgiframe: true,
										width:380,
										modal: true
									});
								}else{
									$("#chkProdInvDialog > p").eq(0).html(actionMessage);
									$('#chkProdInvDialog').dialog('destroy');
									$('#chkProdInvDialog').dialog({
										closeOnEscape: false,
										open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
										bgiframe: true,
										width:380,
										modal: true
									});
								}
							}
							if (actionMessage.indexOf('礼券或购物金，请择一使用') != -1){
								var msgSplit = actionMessage.split(",");
								$("#chkCouponAndBonusDialog > p").eq(0).html(msgSplit[0]);
								if ( msgSplit[1] == "buy" ){
									$("#goProd").attr("style","display:blank");
									$("#goCart").attr("style","display:none");
								}else if ( msgSplit[1] == "cart" ){
									$("#goCart").attr("style","display:blank");
									$("#goProd").attr("style","display:none");
								}
								$("#returnPage").val(msgSplit[1]);
								$('#chkCouponAndBonusDialog').dialog('destroy');
								$('#chkCouponAndBonusDialog').dialog({
									closeOnEscape: false,
									open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
									bgiframe: true,
									width:250,
									modal: true
								});
							} 
							if ( actionMessage.indexOf('验证码') != -1 ){
								var msgSplit = actionMessage.split(",");
								$("#chkValidateNumDialog > p").eq(0).html(msgSplit[0]);
								if ( msgSplit[1] == "buy" ){
									$("#goValidateProd").attr("style","display:blank");
									$("#goValidateCart").attr("style","display:none");
								}else if ( msgSplit[1] == "cart" ){
									$("#goValidateCart").attr("style","display:blank");
									$("#goValidateProd").attr("style","display:none");
								}
								$("#returnPage").val(msgSplit[1]);
								$('#chkValidateNumDialog').dialog('destroy');
								$('#chkValidateNumDialog').dialog({
									closeOnEscape: false,
									open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
									bgiframe: true,
									width:250,
									modal: true
								});
							}
							if ( actionMessage.indexOf('分期') != -1 ){
								$("#chkCreditcardPeriodDialog > p").eq(0).html(actionMessage);
								$('#chkCreditcardPeriodDialog').dialog('destroy');
								$('#chkCreditcardPeriodDialog').dialog({
									closeOnEscape: false,
									open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
									bgiframe: true,
									width:250,
									modal: true
								});
							}
							if ( actionMessage.indexOf('请重新选购!') != -1 ){
								var msgSplit = actionMessage.split(",");
								$("#chkGrossProfitRateDialog > p").eq(0).html(msgSplit[0]);
								$("#returnPage").val(msgSplit[1]);
								$('#chkGrossProfitRateDialog').dialog('destroy');
								$('#chkGrossProfitRateDialog').dialog({
									closeOnEscape: false,
									open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
									bgiframe: true,
									width:250,
									modal: true
								});
							}
						}
					//openDialog("活动信息",content,370,'auto');
				});
				function nonMemberTimeLimitCartCallback(result){//非會員點限時搶購商品加入購物車
					if(result.split('#')[0]=='needToActivate' || result.split('#')[0]=='waitActivate'){
					content='<div class="alert-caution"><p><b class="txt-rd">限时秒杀仅限会员购买！</b><br>立即<a href="/ecmall/toreg.do">加入会员</a>您可马上享受优惠！</p><div align="center"><a href="javascript:showNonmemberDialog(\'' + result + '\');closeDialog();" class="btn-mid" onfocus="blur()">登录或注册</a><a href="javascript:getReturnUrl();closeDialog();" class="btn-mid">关闭</a></div></div>';
					openDialog('活动信息', content,360,'auto');
					}
					}
				</script>
				  </s:iterator>  
			</s:if>
			<s:else>


  <div class="payment">
	<!-- 收到訂單－银行转帐-->
	<c:if test="${orders.paymentTp=='10'}">
		<c:if test="${orders.orderSt=='00'}">
	      			 <div class="step-payment">
				        <div class="step-payment-msg">恭喜，您的订单已经提交！
						        		<p> 我们的客服人员将尽速透过电话与您联系，向您确认订购内容，请务必保持电话畅通。</p>
						 </div>
			         </div>
	        </c:if>
     	  <c:if test="${orders.orderSt!='00'}">
			      <div class="step-payment">
			        <div class="step-payment-msg">恭喜，您的订单已经提交！
			        <c-rt:if test="${!empty orders.storeId}">	
			        		<p> 商品预计于我们收到货款后二至四日，送达您所指定的门店。</p>
			        </c-rt:if>  
			        <c-rt:if test="${empty orders.storeId}">	
					        <c:if test="${orders.orderProduct[0].prodTp=='1'}">
					      		 <p> 本商品为预购商品，預計於<fmt:formatDate pattern="yyyy-MM-dd" value="${product.expectShipDate}" />后開始为您发货。</p>
					        </c:if>
					         <c:if test="${orders.orderProduct[0].prodTp ne '1'}">
					        	 <p>我们收到货款后，将尽快为您确认、处理订单。<br/>(到款时间一般为您付款後 3~5 个工作天)</p>
					 		</c:if>
			 		  </c-rt:if>  
			        </div>
			        <div class="step-payment-form">
			        <table>
			        <tr>
			        <td colspan="2"><img src="/images/step_arrow_icon.gif"><strong class="txt-m"> 您可以至任何一家银行转帐</strong> (<a href="#" id="bank"> 转帐单范例</a> )</td>
			
			        </tr>
			        <tr>
			        <th>应付金额</th>
			        <td><strong class="txt-rd txt-L">${pu:currency(orders.joinMustPay)} 元 </strong><br/>
								<c-rt:if test="${orders.orderId eq orders.joinOrders}">
			           <c-rt:if test="${orders.myWallet != 0 or orders.giftcardBalance != 0}">
			           	<span class="txt-gy">(＝ 订单金额 <span id="mustPay">${pu:currency(orders.mustPay+orders.myWallet+orders.giftcardBalance)}</span> 元
			           	<c-rt:if test="${orders.myWallet != 0}">
			            	－ 我的账户余额支付 <span id="virtualBalance">${pu:currency(orders.myWallet)}</span>元
			            </c-rt:if>
			            <c-rt:if test="${orders.giftcardBalance != 0}">
			            	－ 我的礼品卡支付 <span>${pu:currency(orders.giftcardBalance)}</span>元
			            </c-rt:if>
			            )</span>
			           </c-rt:if>
			          </c-rt:if>
			        </td>
			        </tr>
			        <tr>
			        <th>付款期限</th>
			        <td><strong class="txt-L txt-rd"><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${orders.deadline}" /> </strong><br/>
			            <span class="txt-gy">请尽早付款，逾期系统将自动取消您的订单。</span>
			        </td>
			        </tr>
			        <tr>
			        <th>银行转帐单<br/>必填信息</th>
			        <td class="step-payment-re"><ul>
			        <li><strong>‧收款人户名：</strong>六度贸易(上海)有限公司</li>
			        <li><strong>‧转帐帐号：</strong>招商银行上海五角场支行/121908531810501</li>
			        <li><strong>‧附言栏：</strong>请务必注明<strong class="txt-rd">订单编号${orders.orderId}</strong></li>			
			        </ul>
			        </td>
			        </tr>
			        </table>
		<c-rt:if test="${orders.orderId ne orders.joinOrders}">
			 <p class="txt-m">您结帐的商品生成以下关联订单，合并付款后将各自出货</p>
			 <table class="tb-4">
                        <tr>
                          <th width="80">订单编号</th>
                          <th width="405">订购商品</th>
                          <th width="55">金额</th>
                          </tr>
				 <c-rt:if test="${!empty joinOrderList}">
					<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
						<tr>
					        <td>
					        	<a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
							</td>
							<td><p>				
								<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
									<a class="pd-img" href="${frontendContextPath}/ecmall/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
		        				</c-rt:forEach>
		        			<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
							</p></td>
							<fmt:formatNumber pattern="######0.0" var="totalPrice" value="${joinOrderList.totalPrice - joinOrderList.bonus - joinOrderList.coupon + joinOrderList.shipfare - joinOrderList.discount + joinOrderList.codFee + joinOrderList.installmentFee}"></fmt:formatNumber>
						   <td class="txt-price">￥${totalPrice}</td> 						
					   </tr>
					</c-rt:forEach>	
				</c-rt:if>				        
			</table>
		</c-rt:if>
				<c-rt:if test="${not empty orders.orderBonusCampaign}">
	              <p>
	             	 <c-rt:if test="${orders.orderId eq orders.joinOrders}">
	              		<strong class="txt-rd">本次订单预计将可获得 ${orders.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              	</c-rt:if>
	              	 <c-rt:if test="${orders.orderId ne orders.joinOrders}">
	              		<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
	              			<strong class="txt-rd">订单${joinOrderList.orderId}预计将可获得 ${joinOrderList.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              		</c-rt:forEach>
	              	</c-rt:if>
	              	<span class="txt-gy">（此为估算值仅供参考，最后获得积分以系统实际发放为主。<br>发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。）</span>
	              </p>                           
              </c-rt:if>   			        
			        <p>‧您选择「银行汇款」，我们会在付款期限内保留您未支付的订单。<br>
			          ‧您可随时至 "<a href="${frontContextPath}/member/myOrder/showOrders.do?t=T&p=1">近三个月的订单</a>" 查看订单纪录。<br>
					  ‧收到您的订单后，将针对订单进行审核，如经审核发现订购异常，或有其他耀点100无法出货给您的<br>　情况，如商品缺断货、货到付款超区配送等，将通知您并考虑取消订单，届时请予谅解。</p>
			        </div>
			
			      </div>
			 </c:if>
      </c:if>
      <!-- 收到訂單-->
      <!-- 收到訂單-货到付款-->
      <c:if test="${orders.paymentTp=='30' || orders.paymentTp=='60'}">
      		<!-- 收到訂單-货到付款-審核中-->
      	  <c:if test="${orders.orderSt=='00'}">
			      <div class="step-payment">
			        <div class="step-payment-msg">恭喜，您的订单已经提交！
			        <li>我们的客服人员将尽速透过电话与您联系，向您确认货到付款之发货事宜，请务必保持电话畅通。</li>
			        	<c:if test="${orders.orderProduct[0].prodTp=='1'}">
				      		 <li> 本商品为预购商品，預計於<fmt:formatDate pattern="yyyy-MM-dd" value="${product.expectShipDate}" />后開始为您发货。</li>
				        </c:if>
				         <c:if test="${orders.orderProduct[0].prodTp ne '1'}">
				 		</c:if>	
						 <c:if test="${orders.paymentTp=='30'}">
					       		 <li><strong class="txt-rd">您选择货到付款，请准备好货款，於收货时向送货员支付您的货款。</strong></li> <!-- 货到付款-现金 -->
					        </c:if>
					        <c:if test="${orders.paymentTp=='60'}">
		  						<li><strong class="txt-rd">您选择货到付款，请准备好标有银联标志之银行卡，於货物送达时完成POS机刷卡支付。</strong></li> <!-- 货到付款-刷卡 -->
					        </c:if>
			        </div>
			        <div class="step-payment-form">
			        <table>
			
			        <tr>
			        <th>应付金额</th>
			        <td><strong class="txt-rd txt-L">${pu:currency(orders.joinMustPay)} 元 </strong><br/>
								<c-rt:if test="${orders.orderId eq orders.joinOrders}">
			           <c-rt:if test="${orders.myWallet != 0 or orders.giftcardBalance != 0}">
			           	<span class="txt-gy">(＝ 订单金额 <span id="mustPay">${pu:currency(orders.mustPay+orders.myWallet+orders.giftcardBalance)}</span> 元
			           	<c-rt:if test="${orders.myWallet != 0}">
			            	－ 我的账户余额支付 <span id="virtualBalance">${pu:currency(orders.myWallet)}</span>元
			            </c-rt:if>
			            <c-rt:if test="${orders.giftcardBalance != 0}">
			            	－ 我的礼品卡支付 <span>${pu:currency(orders.giftcardBalance)}</span>元
			            </c-rt:if>
			            )</span>
			           </c-rt:if>
			          </c-rt:if>		           
			        </td>
			        </tr>
			        </table>
	<c-rt:if test="${orders.orderId ne orders.joinOrders}">
			 <p class="txt-m">您结帐的商品生成以下关联订单，合并付款后将各自出货</p>
			 <table class="tb-4">
                        <tr>
                          <th width="80">订单编号</th>
                          <th width="405">订购商品</th>
                          <th width="55">金额</th>
                          </tr>
				 <c-rt:if test="${!empty joinOrderList}">
					<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
						<tr>
					        <td>
					        	<a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
							</td>
							<td><P>				
								<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
									<a class="pd-img" href="${frontendContextPath}/ecmall/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
		        				</c-rt:forEach>
		        			<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
							</P></td>
							<fmt:formatNumber pattern="######0.0" var="totalPrice" value="${joinOrderList.totalPrice - joinOrderList.bonus - joinOrderList.coupon + joinOrderList.shipfare - joinOrderList.discount + joinOrderList.codFee + joinOrderList.installmentFee}"></fmt:formatNumber>
						   <td class="txt-price">￥${totalPrice}</td> 						
					   </tr>
					</c-rt:forEach>	
				</c-rt:if>				        
			</table>
		</c-rt:if>
			        
			<c-rt:if test="${not empty orders.orderBonusCampaign}">
              	 <p>
	             	 <c-rt:if test="${orders.orderId eq orders.joinOrders}">
	              		<strong class="txt-rd">本次订单预计将可获得 ${orders.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              	</c-rt:if>
	              	 <c-rt:if test="${orders.orderId ne orders.joinOrders}">
	              		<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
	              			<strong class="txt-rd">订单${joinOrderList.orderId}预计将可获得 ${joinOrderList.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              		</c-rt:forEach>
	              	</c-rt:if>
	              	<span class="txt-gy">（此为估算值仅供参考，最后获得积分以系统实际发放为主。<br>发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。）</span>
	              </p>                             
              </c-rt:if>   
			        <p>‧您可至 "<a href="${frontContextPath}/member/myOrder/showOrders.do?t=T&p=1">近三个月的订单</a>" 查看订单纪录与明细。
        <br>‧收到您的订单后，将针对订单进行审核，如经审核发现订购异常，或有其他耀点100无法出货给您的<br>　情况，如商品缺断货、货到付款超区配送等，将通知您并考虑取消订单，届时请予谅解。</p>
			        </div>
			      </div>
	       </c:if>
	        <c:if test="${orders.orderSt=='20'}">
			      <div class="step-payment">
			        <div class="step-payment-msg">恭喜，您的订单已经提交！
			        <c:if test="${orders.orderProduct[0].prodTp=='1'}">
				      		 <li> 本商品为预购商品，預計於<fmt:formatDate pattern="yyyy-MM-dd" value="${product.expectShipDate}" />后開始为您发货。</li>
				        </c:if>
				        <c:if test="${orders.orderProduct[0].prodTp ne '1'}">
				 		</c:if>	
			        <ul>
			        <li>发货前我们将<strong>以手机简讯通知您预计送达时间</strong>。请务必保持手机畅通，并确定收货地址有人可以收货！</li>
			        <c:if test="${orders.paymentTp=='30'}">
			       		 <li><strong class="txt-rd">您选择货到付款，请准备好货款，於收货时向送货员支付您的货款。</strong></li> <!-- 货到付款-现金 -->
			        </c:if>
			        <c:if test="${orders.paymentTp=='60'}">
  						<li><strong class="txt-rd">您选择货到付款，请准备好标有银联标志之银行卡，於货物送达时完成POS机刷卡支付。</strong></li> <!-- 货到付款-刷卡 -->
			        </c:if>
			        </ul>
			        </div>
			        <div class="step-payment-form">
			        <table>
			
			        <tr>
			        <th>应付金额</th>
			        <td><strong class="txt-rd txt-L"> ${pu:currency(orders.joinMustPay)} 元 </strong><br/>
								<c-rt:if test="${orders.orderId eq orders.joinOrders}">
			           <c-rt:if test="${orders.myWallet != 0 or orders.giftcardBalance != 0}">
			           	<span class="txt-gy">(＝ 订单金额 <span id="mustPay">${pu:currency(orders.mustPay+orders.myWallet+orders.giftcardBalance)}</span> 元
			           	<c-rt:if test="${orders.myWallet != 0}">
			            	－ 我的账户余额支付 <span id="virtualBalance">${pu:currency(orders.myWallet)}</span>元
			            </c-rt:if>
			            <c-rt:if test="${orders.giftcardBalance != 0}">
			            	－ 我的礼品卡支付 <span>${pu:currency(orders.giftcardBalance)}</span>元
			            </c-rt:if>
			            )</span>
			           </c-rt:if>
			          </c-rt:if>
			        </tr>
			        </table>
			        <c-rt:if test="${orders.orderId ne orders.joinOrders}">
			 <p class="txt-m">您结帐的商品生成以下关联订单，合并付款后将各自出货</p>
			 <table class="tb-4">
                        <tr>
                          <th width="80">订单编号</th>
                          <th width="405">订购商品</th>
                          <th width="55">金额</th>
                          </tr>
				 <c-rt:if test="${!empty joinOrderList}">
					<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
						<tr>
					        <td>
					        	<a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
							</td>
							<td><P>				
								<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
									<a class="pd-img" href="${frontendContextPath}/ecmall/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
		        				</c-rt:forEach>
		        			<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
							</P></td>
							<fmt:formatNumber pattern="######0.0" var="totalPrice" value="${joinOrderList.totalPrice - joinOrderList.bonus - joinOrderList.coupon + joinOrderList.shipfare - joinOrderList.discount + joinOrderList.codFee + joinOrderList.installmentFee}"></fmt:formatNumber>
						   <td class="txt-price">￥${totalPrice}</td> 						
					   </tr>
					</c-rt:forEach>	
				</c-rt:if>				        
			</table>
		</c-rt:if>
			        
			<c-rt:if test="${not empty orders.orderBonusCampaign}">
              	 <p>
	             	 <c-rt:if test="${orders.orderId eq orders.joinOrders}">
	              		<strong class="txt-rd">本次订单预计将可获得 ${orders.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              	</c-rt:if>
	              	 <c-rt:if test="${orders.orderId ne orders.joinOrders}">
	              		<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
	              			<strong class="txt-rd">订单${joinOrderList.orderId}预计将可获得 ${joinOrderList.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              		</c-rt:forEach>
	              	</c-rt:if>
	              	<span class="txt-gy">（此为估算值仅供参考，最后获得积分以系统实际发放为主。<br>发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。）</span>
	              </p>                             
              </c-rt:if>   
			        <p>‧您可至 "<a href="${frontContextPath}/member/myOrder/showOrders.do?t=T&p=1">近三个月的订单</a>" 查看订单纪录与明细。
        <br>‧收到您的订单后，将针对订单进行审核，如经审核发现订购异常，或有其他耀点100无法出货给您的<br>　情况，如商品缺断货、货到付款超区配送等，将通知您并考虑取消订单，届时请予谅解。</p>
			
			        </div>
			      </div>
	       </c:if>
      </c:if>
      <!-- 收到訂單-->
       <!-- 收到訂單-帳戶餘額-->
      <c:if test="${orders.paymentTp=='40'}">
		      <div class="step-payment">
		        <div class="step-payment-msg">恭喜，您的订单已经提交！
		          <c-rt:if test="${!empty orders.storeId}">	
		        		<p> 商品预计于我们收到货款后二至四日，送达您所指定的门店。</p>
		        </c-rt:if>  
		        <c-rt:if test="${empty orders.storeId}">	
			        <c:if test="${orders.orderProduct[0].prodTp=='1'}">
					      		 <p> 本商品为预购商品，預計於<fmt:formatDate pattern="yyyy-MM-dd" value="${product.expectShipDate}" />后開始为您发货。</p>
					        </c:if>
					        <c:if test="${orders.orderProduct[0].prodTp ne '1'}">
					        	  <p>我们将尽快为您确认、处理订单。<br/>
					 	</c:if>	
				</c-rt:if> 
				</div>
		<div class="step-payment-form">
		<c-rt:if test="${orders.orderId ne orders.joinOrders}">
			 <p class="txt-m">您结帐的商品生成以下关联订单，合并付款后将各自出货</p>
			 <table class="tb-4">
                        <tr>
                          <th width="80">订单编号</th>
                          <th width="405">订购商品</th>
                          <th width="55">金额</th>
                          </tr>
				 <c-rt:if test="${!empty joinOrderList}">
					<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
						<tr>
					        <td>
					        	<a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
							</td>
							<td><P>				
								<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
									<a class="pd-img" href="${frontendContextPath}/ecmall/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
		        				</c-rt:forEach>
		        			<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
							</P></td>
							<fmt:formatNumber pattern="######0.0" var="totalPrice" value="${joinOrderList.totalPrice - joinOrderList.bonus - joinOrderList.coupon + joinOrderList.shipfare - joinOrderList.discount + joinOrderList.codFee + joinOrderList.installmentFee}"></fmt:formatNumber>
						   <td class="txt-price">￥${totalPrice}</td> 						
					   </tr>
					</c-rt:forEach>	
				</c-rt:if>				        
			</table>
		</c-rt:if>
			        
			<c-rt:if test="${not empty orders.orderBonusCampaign}">
              	 <p>
	             	 <c-rt:if test="${orders.orderId eq orders.joinOrders}">
	              		<strong class="txt-rd">本次订单预计将可获得 ${orders.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              	</c-rt:if>
	              	 <c-rt:if test="${orders.orderId ne orders.joinOrders}">
	              		<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
	              			<strong class="txt-rd">订单${joinOrderList.orderId}预计将可获得 ${joinOrderList.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              		</c-rt:forEach>
	              	</c-rt:if>
	              	<span class="txt-gy">（此为估算值仅供参考，最后获得积分以系统实际发放为主。<br>发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。）</span>
	              </p>                             
              </c-rt:if>    
		        <p>‧您可至 "<a href="${frontContextPath}/member/myOrder/showOrders.do?t=T&p=1">近三个月的订单</a>" 查看订单纪录与明细。	
<br>‧收到您的订单后，将针对订单进行审核，如经审核发现订购异常，或有其他耀点100无法出货给您的<br>　情况，如商品缺断货、货到付款超区配送等，将通知您并考虑取消订单，届时请予谅解。</p>
		</div>
      </div>
      </c:if>
      <!-- 收到訂單-->
       <!-- 收到訂單-網上支付-->
       <c:if test="${orders.paymentTp=='50'}">
	       <c:if test="${orders.orderSt=='00'}">
	      			 <div class="step-payment">
				        <div class="step-payment-msg">恭喜，您的订单已经提交！
						        		<p> 我们的客服人员将尽速透过电话与您联系，向您确认订购内容，请务必保持电话畅通。</p>
						 </div>
			         </div>
	        </c:if>
     	  <c:if test="${orders.orderSt!='00'}">
			      <div class="step-payment">
			        <div class="step-payment-msg">恭喜，您的订单已经提交！
			        		<c-rt:if test="${!empty orders.storeId}">	
					        		<p> 商品预计于我们收到货款后二至四日，送达您所指定的门店。</p>
					        </c-rt:if>  
					        <c-rt:if test="${empty orders.storeId}">	
						        <c:if test="${orders.orderProduct[0].prodTp=='1'}">
						      		 <p> 本商品为预购商品，預計於<fmt:formatDate pattern="yyyy-MM-dd" value="${product.expectShipDate}" />后開始为您发货。</p>
						        </c:if>
						         <c:if test="${orders.orderProduct[0].prodTp ne '1'}">
						        	<p>我们收到货款后，将尽快为您确认、处理订单。</p>
						 		</c:if>
						 	</c-rt:if> 	
			        </div>
			        <div class="step-payment-form">
			        <table>
			        <tr>
			        <th>应付金额</th>
			 			  <td><strong class="txt-rd txt-L">${pu:currency(orders.joinMustPay)} 元 </strong><br/>
								<c-rt:if test="${orders.orderId eq orders.joinOrders}">
			           <c-rt:if test="${orders.myWallet != 0 or orders.giftcardBalance != 0}">
			           	<span class="txt-gy">(＝ 订单金额 <span id="mustPay">${pu:currency(orders.mustPay+orders.myWallet+orders.giftcardBalance)}</span> 元
			           	<c-rt:if test="${orders.myWallet != 0}">
			            	－ 我的账户余额支付 <span id="virtualBalance">${pu:currency(orders.myWallet)}</span>元
			            </c-rt:if>
			            <c-rt:if test="${orders.giftcardBalance != 0}">
			            	－ 我的礼品卡支付 <span>${pu:currency(orders.giftcardBalance)}</span>元
			            </c-rt:if>
			            )</span>
			           </c-rt:if>
			          </c-rt:if>
			        </td>
			        </tr>
			        <tr>
			        <th>付款期限</th>
			        <td><strong class="txt-L txt-rd"><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${orders.deadline}" /></strong><br/>
			            <span class="txt-gy">请尽早付款，逾期系统将自动取消您的订单。</span>
			        </td>
			        </tr></table>
	<c-rt:if test="${orders.orderId ne orders.joinOrders}">
			 <p class="txt-m">您结帐的商品生成以下关联订单，合并付款后将各自出货</p>
			 <table class="tb-4">
                        <tr>
                          <th width="80">订单编号</th>
                          <th width="405">订购商品</th>
                          <th width="55">金额</th>
                          </tr>
				 <c-rt:if test="${!empty joinOrderList}">
					<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
						<tr>
					        <td>
					        	<a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
							</td>
							<td><P>				
								<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
									<a class="pd-img" href="${frontendContextPath}/ecmall/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
		        				</c-rt:forEach>
		        			<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
							</P></td>
							<fmt:formatNumber pattern="######0.0" var="totalPrice" value="${joinOrderList.totalPrice - joinOrderList.bonus - joinOrderList.coupon + joinOrderList.shipfare - joinOrderList.discount + joinOrderList.codFee + joinOrderList.installmentFee}"></fmt:formatNumber>
						   <td class="txt-price">￥${totalPrice}</td> 						
					   </tr>
					</c-rt:forEach>	
				</c-rt:if>				        
			</table>
		</c-rt:if>
			        
			<c-rt:if test="${not empty orders.orderBonusCampaign}">
              	 <p>
	             	 <c-rt:if test="${orders.orderId eq orders.joinOrders}">
	              		<strong class="txt-rd">本次订单预计将可获得 ${orders.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              	</c-rt:if>
	              	 <c-rt:if test="${orders.orderId ne orders.joinOrders}">
	              		<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
	              			<strong class="txt-rd">订单${joinOrderList.orderId}预计将可获得 ${joinOrderList.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              		</c-rt:forEach>
	              	</c-rt:if>
	              	<span class="txt-gy">（此为估算值仅供参考，最后获得积分以系统实际发放为主。<br>发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。）</span>
	              </p>                             
              </c-rt:if>   			        
			        <p>‧您选择「網上支付」，我们会在<b class="txt-rd">付款期限内</b>保留您未支付的订单，逾期将取消。<br>
			          ‧您可随时至 "<a href="${frontContextPath}/member/myOrder/showOrders.do?t=T&p=1">近三个月的订单</a>" 查看订单纪录。<br>
					  ‧收到您的订单后，将针对订单进行审核，如经审核发现订购异常，或有其他耀点100无法出货给您的<br>　情况，如商品缺断货、货到付款超区配送等，将通知您并考虑取消订单，届时请予谅解。
			          </p>        
			       <table>
			        <tr>
			        <td>
			        <div class="bank-arrow"> 请任选一家立即付款：</div>
					     <c-rt:choose>
						      <c-rt:when test="${member.applySource eq 'taobaomember'}">
				    			<div class="bank-head">第三方支付平台：</div><a href="${frontContextPath}/payment/alipay.do?orderId=${orders.orderId}&paymentType=direct" class="btn-bank"><img src="/images/bank/third01.gif" width="100" height="30"></a>
						      </c-rt:when>
						      <c-rt:when test="${member.applySource eq 'alipaymember'}">
								      <div class="bank-head">支持银行：</div>
									 <c:forEach items="${bankCodeMenu.options}" var="bcm" varStatus="m">
									 	<a href="${frontContextPath}${paymentSrcMenu.options[bcm.value.memo1].memo1}${orders.paymentTxnId}&bankCode=${bcm.key}" class="btn-bank" alt="${bcm.value.name}"><img src="/images/bank/${bcm.key}.gif" width="100" height="30"></a>
									 </c:forEach>
									<div class="bank-head">第三方支付平台：</div><a href="${frontContextPath}/payment/alipay.do?orderId=${orders.orderId}&paymentType=direct" class="btn-bank"><img src="/images/bank/third01.gif" width="100" height="30"></a>				    		
						      </c-rt:when>
					      <c-rt:otherwise>
					      			<div class="bank-head">支持银行：</div>
							 <c:forEach items="${bankCodeMenu.options}" var="bcm" varStatus="m">
							 	<a href="${frontContextPath}${paymentSrcMenu.options[bcm.value.memo1].memo1}${orders.paymentTxnId}&bankCode=${bcm.key}" class="btn-bank" alt="${bcm.value.name}"><img src="/images/bank/${bcm.key}.gif" width="100" height="30"></a>
							 </c:forEach>
					        <div class="bank-head">第三方支付平台：</div><a href="${frontContextPath}/payment/alipay.do?orderId=${orders.paymentTxnId}&paymentType=direct" class="btn-bank"><img src="/images/bank/third01.gif" width="100" height="30"></a><a href="${frontContextPath}/payment/quickmoney.do?orderId=${orders.paymentTxnId}" class="btn-bank"><img src="/images/bank/third02.gif" width="100" height="30"></a><a href="${frontContextPath}/payment/tenpay.do?orderId=${orders.paymentTxnId}" class="btn-bank"><img src="/images/bank/third03.gif" width="100" height="30"></a><a href="${frontContextPath}/payment/chinapay.do?orderId=${orders.paymentTxnId}" class="btn-bank"><img src="/images/bank/third04.gif" width="100" height="30"></a>
					      </c-rt:otherwise>
						</c-rt:choose>
			        </td>
			        </tr>
			        </table>
			        </div>
			      </div>
		 </c:if>
      </c:if>
       <!-- 收到訂單-信用卡单期-->
       <c:if test="${orders.paymentTp=='70'}">
	       <c:if test="${orders.orderSt=='00'}">
	      			 <div class="step-payment">
				        <div class="step-payment-msg">恭喜，您的订单已经提交！
						        		<p> 我们的客服人员将尽速透过电话与您联系，向您确认订购内容，请务必保持电话畅通。</p>
						 </div>
			         </div>
	        </c:if>
     	  <c:if test="${orders.orderSt!='00'}">
			      <div class="step-payment">
			        <div class="step-payment-msg">恭喜，您的订单已经提交！
			        		<c-rt:if test="${!empty orders.storeId}">	
					        		<p> 商品预计于我们收到货款后二至四日，送达您所指定的门店。</p>
					        </c-rt:if>  
					        <c-rt:if test="${empty orders.storeId}">	
						        <c:if test="${orders.orderProduct[0].prodTp=='1'}">
						      		 <p> 本商品为预购商品，預計於<fmt:formatDate pattern="yyyy-MM-dd" value="${product.expectShipDate}" />后開始为您发货。</p>
						        </c:if>
						         <c:if test="${orders.orderProduct[0].prodTp ne '1'}">
						        	<p>我们收到货款后，将尽快为您确认、处理订单。</p>
						 		</c:if>
						 	</c-rt:if> 	
			        </div>
			        <div class="step-payment-form">
			        <table>
			        <tr>
			        <th>应付金额</th>
			 			  <td><strong class="txt-rd txt-L">${pu:currency(orders.joinMustPay)} 元 </strong><br/>
								<c-rt:if test="${orders.orderId eq orders.joinOrders}">
			           <c-rt:if test="${orders.myWallet != 0 or orders.giftcardBalance != 0}">
			           	<span class="txt-gy">(＝ 订单金额 <span id="mustPay">${pu:currency(orders.mustPay+orders.myWallet+orders.giftcardBalance)}</span> 元
			           	<c-rt:if test="${orders.myWallet != 0}">
			            	－ 我的账户余额支付 <span id="virtualBalance">${pu:currency(orders.myWallet)}</span>元
			            </c-rt:if>
			            <c-rt:if test="${orders.giftcardBalance != 0}">
			            	－ 我的礼品卡支付 <span>${pu:currency(orders.giftcardBalance)}</span>元
			            </c-rt:if>
			            )</span>
			           </c-rt:if>
			          </c-rt:if>
			        </td>
			        </tr>
			        <tr>
			        <th>付款期限</th>
			        <td><strong class="txt-L txt-rd"><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${orders.deadline}" /></strong><br/>
			            <span class="txt-gy">请尽早付款，逾期系统将自动取消您的订单。</span>
			        </td>
			        </tr></table>
			<c-rt:if test="${orders.orderId ne orders.joinOrders}">
			 <p class="txt-m">您结帐的商品生成以下关联订单，合并付款后将各自出货</p>
			 <table class="tb-4">
                        <tr>
                          <th width="80">订单编号</th>
                          <th width="405">订购商品</th>
                          <th width="55">金额</th>
                          </tr>
				 <c-rt:if test="${!empty joinOrderList}">
					<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
						<tr>
					        <td>
					        	<a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
							</td>
							<td><p>				
								<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
									<a class="pd-img" href="${frontendContextPath}/ecmall/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
		        				</c-rt:forEach>
		        			<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
							</p></td>
							<fmt:formatNumber pattern="######0.0" var="totalPrice" value="${joinOrderList.totalPrice - joinOrderList.bonus - joinOrderList.coupon + joinOrderList.shipfare - joinOrderList.discount + joinOrderList.codFee + joinOrderList.installmentFee}"></fmt:formatNumber>
						   <td class="txt-price">￥${totalPrice}</td> 						
					   </tr>
					</c-rt:forEach>	
				</c-rt:if>				        
			</table>
		</c-rt:if>
			        
			<c-rt:if test="${not empty orders.orderBonusCampaign}">
              	 <p>
	             	 <c-rt:if test="${orders.orderId eq orders.joinOrders}">
	              		<strong class="txt-rd">本次订单预计将可获得 ${orders.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              	</c-rt:if>
	              	 <c-rt:if test="${orders.orderId ne orders.joinOrders}">
	              		<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
	              			<strong class="txt-rd">订单${joinOrderList.orderId}预计将可获得 ${joinOrderList.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              		</c-rt:forEach>
	              	</c-rt:if>
	              	<span class="txt-gy">（此为估算值仅供参考，最后获得积分以系统实际发放为主。<br>发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。）</span>
	              </p>                             
              </c-rt:if>  			        
			        <p>‧您选择「信用卡单期支付」，我们会在<b class="txt-rd">24小时内</b>保留您未支付的订单，逾期将取消。<br>
			          ‧您可随时至 "<a href="${frontContextPath}/member/myOrder/showOrders.do?t=T&p=1">近三个月的订单</a>" 查看订单纪录。<br>
					  ‧收到您的订单后，将针对订单进行审核，如经审核发现订购异常，或有其他耀点100无法出货给您的<br>　情况，如商品缺断货、货到付款超区配送等，将通知您并考虑取消订单，届时请予谅解。
			          </p>        
			       <table>
			        <tr>
			        <td>
			        <div class="bank-arrow"> 请任选一家立即付款：</div>
								<c-rt:forEach items="${billBankSingleCodeMenu.options}" var="bankCode">
   			    			<a href="/ecmall/payment/quickmoneyCC.do?orderId=${orders.orderId}&period=1" class="btn-bank"><img src="/images/bank/${bankCode.key}.gif"/></a>
   			    		</c-rt:forEach>
			        </td>
			        </tr>
			        </table>
			        </div>
			      </div>
		 </c:if>
      </c:if>      
       <!-- 收到訂單-信用卡分期-->
       <c:if test="${orders.paymentTp=='80'}">
	       <c:if test="${orders.orderSt=='00'}">
	      			 <div class="step-payment">
				        <div class="step-payment-msg">恭喜，您的订单已经提交！
						        		<p> 我们的客服人员将尽速透过电话与您联系，向您确认订购内容，请务必保持电话畅通。</p>
						 </div>
			         </div>
	        </c:if>
     	  <c:if test="${orders.orderSt!='00'}">
			      <div class="step-payment">
			        <div class="step-payment-msg">恭喜，您的订单已经提交！
			        		<c-rt:if test="${!empty orders.storeId}">	
					        		<p> 商品预计于我们收到货款后二至四日，送达您所指定的门店。</p>
					        </c-rt:if>  
					        <c-rt:if test="${empty orders.storeId}">	
						        <c:if test="${orders.orderProduct[0].prodTp=='1'}">
						      		 <p> 本商品为预购商品，預計於<fmt:formatDate pattern="yyyy-MM-dd" value="${product.expectShipDate}" />后開始为您发货。</p>
						        </c:if>
						         <c:if test="${orders.orderProduct[0].prodTp ne '1'}">
						        	<p>我们收到货款后，将尽快为您确认、处理订单。</p>
						 		</c:if>
						 	</c-rt:if> 	
			        </div>
			        <div class="step-payment-form">
			        <table>
			        <tr>
			        <th>应付金额</th>
			 			  <td><strong class="txt-rd txt-L">${pu:currency(orders.joinMustPay)} 元 </strong><span class="txt-rd"><strong>(每期约<fmt-rt:formatNumber value="${(orders.joinMustPay/orders.orderCreditCardCampaign.creditcartPeriod)+0.5}"  pattern="#,###,##0" maxFractionDigits="0"/>元)</strong></span><br/>
								<c-rt:if test="${orders.orderId eq orders.joinOrders}">
			           <c-rt:if test="${orders.myWallet != 0 or orders.giftcardBalance != 0}">
			           	<span class="txt-gy">(＝ 订单金额 <span id="mustPay">${pu:currency(orders.mustPay+orders.myWallet+orders.giftcardBalance)}</span> 元
			           	<c-rt:if test="${orders.myWallet != 0}">
			            	－ 我的账户余额支付 <span id="virtualBalance">${pu:currency(orders.myWallet)}</span>元
			            </c-rt:if>
			            <c-rt:if test="${orders.giftcardBalance != 0}">
			            	－ 我的礼品卡支付 <span>${pu:currency(orders.giftcardBalance)}</span>元
			            </c-rt:if>
			            )</span>
			           </c-rt:if>
			          </c-rt:if>
			        </td>
			        </tr>
			        <tr>
			        <th>付款期限</th>
			        <td><strong class="txt-L txt-rd"><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${orders.deadline}" /></strong><br/>
			            <span class="txt-gy">请尽早付款，逾期系统将自动取消您的订单。</span>
			        </td>
			        </tr></table>
			<c-rt:if test="${orders.orderId ne orders.joinOrders}">
			 <p class="txt-m">您结帐的商品生成以下关联订单，合并付款后将各自出货</p>
			 <table class="tb-4">
                        <tr>
                          <th width="80">订单编号</th>
                          <th width="405">订购商品</th>
                          <th width="55">金额</th>
                          </tr>
				 <c-rt:if test="${!empty joinOrderList}">
					<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
						<tr>
					        <td>
					        	<a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
							</td>
							<td><p>						
								<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
									<a class="pd-img" href="${frontendContextPath}/ecmall/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
		        				</c-rt:forEach>
		        			<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
							</p></td>
							<fmt:formatNumber pattern="######0.0" var="totalPrice" value="${joinOrderList.totalPrice - joinOrderList.bonus - joinOrderList.coupon + joinOrderList.shipfare - joinOrderList.discount + joinOrderList.codFee + joinOrderList.installmentFee}"></fmt:formatNumber>
						   <td class="txt-price">￥${totalPrice}</td> 						
					   </tr>
					</c-rt:forEach>	
				</c-rt:if>				        
			</table>
		</c-rt:if>
			<c-rt:if test="${not empty orders.orderBonusCampaign}">
              	 <p>
	             	 <c-rt:if test="${orders.orderId eq orders.joinOrders}">
	              		<strong class="txt-rd">本次订单预计将可获得 ${orders.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              	</c-rt:if>
	              	 <c-rt:if test="${orders.orderId ne orders.joinOrders}">
	              		<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
	              			<strong class="txt-rd">订单${joinOrderList.orderId}预计将可获得 ${joinOrderList.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              		</c-rt:forEach>
	              	</c-rt:if>
	              	<span class="txt-gy">（此为估算值仅供参考，最后获得积分以系统实际发放为主。<br>发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。）</span>
	              </p>                            
              </c-rt:if>  			        
			        <p>‧您选择「信用卡分期支付」，我们会在<b class="txt-rd">24小时内</b>保留您未支付的订单，逾期将取消。<br>
			          ‧您可随时至 "<a href="${frontContextPath}/member/myOrder/showOrders.do?t=T&p=1">近三个月的订单</a>" 查看订单纪录。<br>
					  ‧收到您的订单后，将针对订单进行审核，如经审核发现订购异常，或有其他耀点100无法出货给您的<br>　情况，如商品缺断货、货到付款超区配送等，将通知您并考虑取消订单，届时请予谅解。
			          </p>        
			       <table>
			        <tr>
			        <td>
			        <div class="bank-arrow"> 请任选一家立即付款：</div>
								<c-rt:forEach items="${creditcard.cardDetails}" var="cardDetail">
    							<c-rt:choose>
	    							<c-rt:when test="${cardDetail.setting.creditcardName eq '快钱'}">
	    									<c-rt:forEach items="${billBankCodeMenu.options}" var="bankCode">
         			    				<a href="/ecmall/payment/quickmoneyCC.do?orderId=${orders.orderId}&period=${orders.orderCreditCardCampaign.creditcartPeriod}" class="btn-bank"><img src="/images/bank/${bankCode.key}.gif"/></a>
         			    			</c-rt:forEach>
         			    		</c-rt:when>
         			    		<c-rt:otherwise>
         			    			<a href="/ecmall/payment/quickmoneyCC.do?orderId=${orders.orderId}&period=${orders.orderCreditCardCampaign.creditcartPeriod}" class="btn-bank"><img src="${cardDetail.setting.id}.gif">${cardDetail.setting.creditcardName}</a>
         			    		</c-rt:otherwise>
         			    </c-rt:choose>
           			</c-rt:forEach>
			        </td>
			        </tr>
			        </table>
			        </div>
			      </div>
		 </c:if>
      </c:if>            
      <!-- 收到訂單-->
      <!-- 收到訂單-邮局汇款-->
      <c:if test="${orders.paymentTp=='20'}">
        <c:if test="${orders.orderSt=='00'}">
	      			 <div class="step-payment">
				        <div class="step-payment-msg">恭喜，您的订单已经提交！
						        		<p> 我们的客服人员将尽速透过电话与您联系，向您确认订购内容，请务必保持电话畅通。</p>
						 </div>
			         </div>
	        </c:if>
     	  <c:if test="${orders.orderSt!='00'}">
				      <div class="step-payment">
				        <div class="step-payment-msg">恭喜，您的订单已经提交！
				       			 <c-rt:if test="${!empty orders.storeId}">	
						        		<p> 商品预计于我们收到货款后二至四日，送达您所指定的门店。</p>
						        </c-rt:if>  
						        <c-rt:if test="${empty orders.storeId}">	
							        <c:if test="${orders.orderProduct[0].prodTp=='1'}">
							      		 <p> 本商品为预购商品，預計於<fmt:formatDate pattern="yyyy-MM-dd" value="${product.expectShipDate}" />后開始为您发货。</p>
							        </c:if>
							         <c:if test="${orders.orderProduct[0].prodTp ne '1'}">
							        	 <p>我们收到货款后，将尽快为您确认、处理订单。<br/>(到款时间一般为您付款後 3~5 个工作天)</p>
							 		</c:if>
							 	</c-rt:if>	
				        </div>
				        <div class="step-payment-form">
				        <table>
				        <tr>
				        <td colspan="2"><img src="/images/step_arrow_icon.gif"><strong class="txt-m"> 请及早至邮局汇款</strong> (<a href="javascript:;" id="postOffice"> 汇款单范例</a> )</td>
				
				        </tr>
				        <tr>
				        <th>应付金额</th>
				        <td><strong class="txt-rd txt-L">${pu:currency(orders.joinMustPay)} 元 </strong><br/>
								<c-rt:if test="${orders.orderId eq orders.joinOrders}">
			           <c-rt:if test="${orders.myWallet != 0 or orders.giftcardBalance != 0}">
			           	<span class="txt-gy">(＝ 订单金额 <span id="mustPay">${pu:currency(orders.mustPay+orders.myWallet+orders.giftcardBalance)}</span> 元
			           	<c-rt:if test="${orders.myWallet != 0}">
			            	－ 我的账户余额支付 <span id="virtualBalance">${pu:currency(orders.myWallet)}</span>元
			            </c-rt:if>
			            <c-rt:if test="${orders.giftcardBalance != 0}">
			            	－ 我的礼品卡支付 <span>${pu:currency(orders.giftcardBalance)}</span>元
			            </c-rt:if>
			            )</span>
			           </c-rt:if>
			          </c-rt:if>
				        </td>
				        </tr>
				        <tr>
				        <th>付款期限</th>
				        <td><strong class="txt-L txt-rd"><fmt:formatDate pattern="yyyy-MM-dd HH:mm" value="${orders.deadline}" /></strong><br/>
				            <span class="txt-gy">请尽早付款，逾期系统将自动取消您的订单。</span>
				        </td>
				        </tr>
				        <tr>
				        <th>邮局汇款单<br/>必填信息</th>
				        <td class="step-payment-re"><ul>
				        <li><strong>‧汇款种类：</strong>请勾选「商务付款」</li>
				        <li><strong>‧商户客户号：</strong>请填写 312221025</li>
				        <li><strong>‧附言栏：</strong>请务必注明<strong class="txt-rd">订单编号${orders.orderId}</strong></li>				
				        </ul>
				        </td>
				        </tr>
				        </table>
		<c-rt:if test="${orders.orderId ne orders.joinOrders}">
			 <p class="txt-m">您结帐的商品生成以下关联订单，合并付款后将各自出货</p>
			 <table class="tb-4">
                        <tr>
                          <th width="80">订单编号</th>
                          <th width="405">订购商品</th>
                          <th width="55">金额</th>
                          </tr>
				 <c-rt:if test="${!empty joinOrderList}">
					<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
						<tr>
					        <td>
					        	<a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
							</td>
							<td><p>				
								<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
									<a class="pd-img" href="${frontendContextPath}/ecmall/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
		        				</c-rt:forEach>
		        			<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="/ecmall/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
							</p></td>
							<fmt:formatNumber pattern="######0.0" var="totalPrice" value="${joinOrderList.totalPrice - joinOrderList.bonus - joinOrderList.coupon + joinOrderList.shipfare - joinOrderList.discount + joinOrderList.codFee + joinOrderList.installmentFee}"></fmt:formatNumber>
						   <td class="txt-price">￥${totalPrice}</td> 						
					   </tr>
					</c-rt:forEach>	
				</c-rt:if>				        
			</table>
		</c-rt:if>
				        
			  <c-rt:if test="${not empty orders.orderBonusCampaign}">
              	 <p>
	             	 <c-rt:if test="${orders.orderId eq orders.joinOrders}">
	              		<strong class="txt-rd">本次订单预计将可获得 ${orders.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              	</c-rt:if>
	              	 <c-rt:if test="${orders.orderId ne orders.joinOrders}">
	              		<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
	              			<strong class="txt-rd">订单${joinOrderList.orderId}预计将可获得 ${joinOrderList.orderBonusCampaign.giveBonus} 积分。</strong><br>
	              		</c-rt:forEach>
	              	</c-rt:if>
	              	<span class="txt-gy">（此为估算值仅供参考，最后获得积分以系统实际发放为主。<br>发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。）</span>
	              </p>                              
              </c-rt:if>  				        
				        <p>‧您选择「邮局汇款」，我们会在付款期限内保留您未支付的订单。<br>
				          ‧您可随时是 "<a href="${frontContextPath}/member/myOrder/showOrders.do?t=T&p=1">近三个月的订单</a>" 查看订单纪录。<br>
				          ‧收到您的订单后，将针对订单进行审核，如经审核发现订购异常，或有其他耀点100无法出货<br>　给您的情况，如商品缺断货、货到付款超区配送等，将通知您并考虑取消订单，届时请予谅解。
						</p>        
				        </div>
				      </div>
	       </c:if>
	      </c:if>
				      <c-rt:if test="${!empty orders.storeId}">	   
				       		<div class="step-payment">  
								<div class="atstore-end">
						          <p ><strong>达芙妮门店取货注意事项：</strong></p>
						          <p >• 到货时，系统将以email及短信通知您取货时间。<br>
						            • 请于到货后<span class="txt-rd">7天</span>内至门店取货。<br>
						            • 取货时，必须由<span class="txt-rd">收货本人出示有效证件</span>或<span class="txt-rd">手机取货短信</span>，方可领货。<br>
						
						          • 逾期未领货，系统将自动取消您的订单，提醒您尽早取货。</p>
						        </div>
					         </div>
					  </c-rt:if>
			
		
      <!-- 收到訂單-->
      <!-- 非會員註冊成會員-->
      <jsp:include page="/common/nonmember_orderinfo.jsp"/>
    <!-- 訂單明細 -->
    <p class="a-function"> 
    <input type="hidden" id="orderId" name="orderId" value="${orders.orderId}"/>   
    </p>
<c-rt:if test="${orders.orderId eq orders.joinOrders}">
    <h3>订单编号：${orders.orderId}</h3>
		<div class="od-detail d-show"> 
	    <table class="tb-3"> 
	        <thead> 
	          <tr> 
	            <th width="430">商品名称</th>
	            <th width="80">类型</th>
	            <th width="100">属性</th>
	            <th width="70">单价</th>
	            <th width="50">数量</th>
	            <th width="65">小计</th>
	          </tr> 
	        </thead> 
	        <tbody> 
	        <c-rt:forEach items="${orders.orderProduct }" var="op" varStatus="opStatus">
	        
	        
	        
	        		<c-rt:if test="${op.prodTp=='2'}">
	          	<tr>
	            	<td colspan="5" align="left" class="table-in">
	            		<table border="0">
	                	<tr>
		                  <td width="430"><p>${op.prodName}</p></td>
		                  <td width="80"><span class="type-2">赠品</span></td>
		                  <td width="100">${op.prodSpecName }</td>
		                  <td width="70" class="txt-price">￥ ${pu:rmb(op.unitPrice)}</td>
		                  <td width="50">${op.qty}</td>
		                </tr>
		                
	                </table>
		            </td>
	            	<td align="left" class="txt-price">￥ ${pu:rmb(op.totalPrice)}</td>
	          	</tr>
          	</c-rt:if>
	        
	        
	        
						<c-rt:if test="${op.prodTp=='6'}">
	          	<tr>
	            	<td colspan="5" align="left" class="table-in">
	            		<table border="0">
	                	<tr>
		                  <td width="430"><p>${op.prodName}</p>
		                  <c-rt:forEach items="${op.applyCampaigns}" var="ac" varStatus="status2">
	          	
	          	<p>
	          	<c-rt:if test="${ac.active}">
	          		<span class="type-4">优惠</span>
	          	</c-rt:if>
	          	<c-rt:if test="${!ac.active}">
	          		<span class="type-6">优惠</span>（不符合）
	          	</c-rt:if>

	          	
	          	${pu:reqSet('pc', pu:get('com.yaodian100.ec.campaign.entity.Campaign', ac.campaignUuid)) }
	          	
	         <a class="btn-promo" href="javascript:openCampaign_${opStatus.index }_${status2.index }()">${pc.campaignName } </a>
	          
				<script>
				<c-rt:set scope="request" var="campaignDetail">
            	${pu:replaceAll(pc.campaignDetail, '\'', '&#39;')}
            	</c-rt:set>
            	<c-rt:set scope="request" var="campaignDesc">
            	${pu:replaceAll(pc.campaignDesc, '\'', '&#39;')}
            	</c-rt:set>
					function openCampaign_${opStatus.index }_${status2.index }(){
						var dialogId='dialog';
						<%
						String campaignDetail=(String)request.getAttribute("campaignDetail");
						String campaignDesc=(String)request.getAttribute("campaignDesc");
						campaignDetail=campaignDetail.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
						campaignDesc=campaignDesc.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
						request.setAttribute("campaignDetail", campaignDetail);
						request.setAttribute("campaignDesc", campaignDesc);
						%>
						title='活动信息';
						campaignTitle='${pu:replaceAll(pc.campaignName, '\'', '&#39;')}';
						desc= '${campaignDesc}';
						detail='${campaignDetail}';
						startDate= '<fmt-rt:formatDate value="${pc.startDateTime}" pattern="yyyy/MM/dd HH:mm:ss"/>';
						endDate= '<fmt-rt:formatDate value="${pc.endDateTime}" pattern="yyyy/MM/dd HH:mm:ss"/>';
						url= '${pc.campaignUrl}';
						width= 300;
						height= 'auto';

						var content=compositeCampaign(campaignTitle, desc, detail, startDate, endDate, url);
						openDialog(title, content,width,height);
						$( '#'+dialogId).dialog('option', 'position', 'top' );
					}
				</script>
	          	</p>
	          	</c-rt:forEach>
		                  
		                  </td>
		                  <td width="80"><span class="type-0">主商品</span></td>
		                  <td width="100">&nbsp;</td>
		                  <td width="70" class="txt-price">￥ ${pu:rmb(op.unitPrice)}</td>
		                  <td width="50">1</td>
		                </tr>
		                <c-rt:forEach items="${op.orderProductDetail}" var="opd">
		                	<c-rt:if test="${opd.detailTp == '6' and opd.prodId ne op.prodId}">
			                	<tr>
				                  <td width="430" class="txt-gy"><p>${opd.prodName}</p></td>
				                  <td width="80"><span class="type-4">活动</span></td>
				                  <td width="100" class="txt-gy">${opd.prodSpecName}</td>
				                  <td width="70">&nbsp;</td>
				                  <td  width="50" class="txt-gy">${opd.qty}</td>
			                	</tr>
		                	</c-rt:if>
	                	</c-rt:forEach>
	                </table>
		            </td>
	            	<td align="left" class="txt-price">￥ ${pu:rmb(op.totalPrice)}</td>
	          	</tr>
          	</c-rt:if>
						<c-rt:if test="${op.prodTp=='5'}">
	          	<tr>
	            	<td colspan="5" align="left" class="table-in">
	            		<table border="0">
	                	<tr>
		                  <td width="430"><p>${op.prodName}</p></td>
		                  <td width="80"><span class="type-5">满额购</span></td>
		                  <td width="100">${op.prodSpecName}</td>
		                  <td width="70" class="txt-price">￥ ${pu:rmb(op.unitPrice)}</td>
		                  <td width="50">1</td>
		                </tr>
		                <c-rt:forEach items="${op.orderProductDetail}" var="opd">
		                	<c-rt:if test="${opd.detailTp == '6'}">
			                	<tr>
				                  <td class="txt-gy"><p>${opd.prodName}</p></td>
				                  <td><span class="type-4">活动</span></td>
				                  <td width="100" class="txt-gy">${opd.prodSpecName}</td>
				                  <td>&nbsp;</td>
				                  <td class="txt-gy">1</td>
			                	</tr>
		                	</c-rt:if>
	                	</c-rt:forEach>
	                </table>
		            </td>
	            	<td align="left" class="txt-price">￥ ${pu:rmb(op.totalPrice)}</td>
	          	</tr>
          	</c-rt:if>          	
          	<c-rt:if test="${op.prodTp=='0' or op.prodTp=='1' or op.prodTp == '7'}">
	          	<tr>
		            <td colspan="5" align="left" class="table-in">
		            	<c-rt:forEach items="${op.orderProductDetail}" var="opd" varStatus="status1">
				            <table border="0">
				            	<c-rt:if test="${opd.detailTp == '0' or opd.detailTp == '1' or opd.detailTp == '7'}">
				                <tr>
				                  <td width="430"><p>${opd.prodName}</p></td>
				                  <td width="80">
				                  	<c-rt:if test="${op.prodTp == '0' || op.prodTp == '7'}">
				                  		<c-rt:if test="${op.prodTp == '0' || op.prodTp == '7'}">
						                  		<span class="type-0">主商品</span>
						                  	</c-rt:if>	
				                  	</c-rt:if>
				                  	<c-rt:if test="${op.prodTp == '1'}">
				                  		<span class="type-1">预购</span>
				                  	</c-rt:if>
				                  </td>
				                  <td width="100">${opd.prodSpecName}</td>
				                  <td width="70" class="txt-price">￥ ${pu:rmb(opd.unitPrice)}</td>
				                  <td width="50">${opd.qty}</td>
				                </tr>
				               </c-rt:if>
				               <c-rt:if test="${opd.detailTp == '2'}">
					             	<tr>
				                  <td width="430" class="txt-gy"><p>${opd.prodName}</p></td>
				                  <td width="80"><span class="type-2">赠品</span></td>
				                  <td width="100" class="txt-gy">&nbsp;</td>
				                  <td width="70" class="txt-price">&nbsp;</td>
				                  <td width="50" class="txt-gy">${opd.qty}</td>
				               	</tr>
				               </c-rt:if>
				               <c-rt:if test="${opd.detailTp == '3'}">
				               	<tr>
				                  <td width="430" class="txt-gy"><p>${opd.prodName}</p></td>
				                  <td width="80"><span class="type-3">加购</span></td>
				                  <td width="100" class="txt-gy">${opd.prodSpecName}</td>
				                  <td width="70" class="txt-price">￥ ${pu:rmb(opd.unitPrice)}</td>
				                  <td width="50" class="txt-gy">${opd.qty}</td>
			                 	</tr>
				               </c-rt:if>
				            </table>
				           
	          
	          	<c-rt:if test="${opd.detailTp ne '2' && opd.detailTp ne '3'}">
	          	<c-rt:forEach items="${op.applyCampaigns}" var="ac" varStatus="status2">
	          	
	          	<p>
	          	<c-rt:if test="${ac.active}">
	          		<span class="type-4">优惠</span>
	          	</c-rt:if>
	          	<c-rt:if test="${!ac.active}">
	          		<span class="type-6">优惠</span>（不符合）
	          	</c-rt:if>

	          	
	          	${pu:reqSet('pc', pu:get('com.yaodian100.ec.campaign.entity.Campaign', ac.campaignUuid)) }
	          	
	          	<a class="btn-promo" href="javascript:openCampaign_${status1.index }_${status2.index }()">${pc.campaignName } </a>
	          
				<script>
				<c-rt:set scope="request" var="campaignDetail">
            	${pu:replaceAll(pc.campaignDetail, '\'', '&#39;')}
            	</c-rt:set>
            	<c-rt:set scope="request" var="campaignDesc">
            	${pu:replaceAll(pc.campaignDesc, '\'', '&#39;')}
            	</c-rt:set>
					function openCampaign_${status1.index }_${status2.index }(){
						var dialogId='dialog';
						<%
						String campaignDetail=(String)request.getAttribute("campaignDetail");
						String campaignDesc=(String)request.getAttribute("campaignDesc");
						campaignDetail=campaignDetail.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
						campaignDesc=campaignDesc.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
						request.setAttribute("campaignDetail", campaignDetail);
						request.setAttribute("campaignDesc", campaignDesc);
						%>
						title='活动信息';
						campaignTitle='${pu:replaceAll(pc.campaignName, '\'', '&#39;')}';
						desc= '${campaignDesc}';
						detail='${campaignDetail}';
						startDate= '<fmt-rt:formatDate value="${pc.startDateTime}" pattern="yyyy/MM/dd HH:mm:ss"/>';
						endDate= '<fmt-rt:formatDate value="${pc.endDateTime}" pattern="yyyy/MM/dd HH:mm:ss"/>';
						url= '${pc.campaignUrl}';
						width= 300;
						height= 'auto';

						var content=compositeCampaign(campaignTitle, desc, detail, startDate, endDate, url);
						openDialog(title, content,width,height);
						$( '#'+dialogId).dialog('option', 'position', 'top' );
					}
				</script>
	          	</p>
	          	</c-rt:forEach>
	          	</c-rt:if>

			            </c-rt:forEach>
			          </td>
			          <td align="left" class="txt-price">￥ ${pu:rmb(op.totalPrice)}</td>
			        </tr>
				     </c-rt:if>
				   </c-rt:forEach>
	        </tbody> 
	      </table> 
	     	<p class="total">本次订购共 <strong class="txt-rd">${orders.productSum}</strong> 项商品，商品总额：<span>￥<input type="text" value="${pu:rmb(orders.totalPrice) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	     	<p class="total">折抵优惠：<span>￥<input type="text" value="- ${pu:rmb(orders.discount) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	     	<div class="total-line"> 
	     	<p class="total"><strong>合计金额</strong>：<span>￥<input type="text" value="${pu:rmb(orders.amount) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	      <p class="total">运费：<span>￥<input type="text" value="+ ${pu:rmb(orders.shipfare) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	      <p class="total">货到付款手续费：<span>￥<input type="text" value="+ ${pu:rmb(orders.codFee)}" class="show-money txt-bk" readonly="readonly">元</span></p>
	      <p class="total">抵扣礼券：<span>￥<input type="text" value="- ${pu:rmb(orders.coupon) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	      <p class="total">折抵<strong class="txt-rd">${empty orders.orderBonusCampaign ? 0 : orders.orderBonusCampaign.offsetRate * orders.bonus }</strong>积分：<span>￥<input type="text" value="- ${pu:rmb(orders.bonus) }" class="show-money txt-bk" readonly="readonly">元</span></p>
				</div>	      
	      <div class="total-line"> 
	      <p class="total"><strong>订单金额：</strong><span>￥<input type="text" value="${pu:rmb(orders.totalPrice - orders.bonus - orders.coupon + orders.shipfare - orders.discount+orders.codFee) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	      <p class="total">礼品卡支付： <span>￥<input type="text" value="- ${pu:rmb(orders.giftcardBalance) }" class="show-money txt-bk" readonly="readonly">元</span></p> 
	      <p class="total">账户余额支付： <span>￥<input type="text" value="- ${pu:rmb(orders.myWallet) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	      <c-rt:if test="${'on' eq useCreditcardPeriod and orders.installmentFee > 0 }">
	      <p class="total">＋分期附加费：<span>￥<input type="text" value="+ ${pu:rmb(orders.installmentFee) }" class="show-money txt-bk" readonly="readonly" >元</span></p>
	      </c-rt:if>
	      </div>
	      <div class="total-line"> 
	      <p class="total txt-m"><strong>剩馀应付金额：</strong><strong class="txt-rd">￥<input type="text" value="${pu:rmb(orders.mustPay) }" class="show-money txt-L" readonly="readonly">元</strong></p>
	      <c-rt:if test="${orders.paymentTp=='80'}">
	      	<p class="total txt-m"><span class="txt-rd"><strong>(每期约<fmt-rt:formatNumber value="${(orders.mustPay/orders.orderCreditCardCampaign.creditcartPeriod)+0.5}"  pattern="#,###,##0" maxFractionDigits="0"/>元)</strong></span></p>
	      </c-rt:if> 
	      <c-rt:if test="${not empty orders.orderBonusCampaign}">
	       <p class="total get-crm">‧本次订单预计将可获得  <strong class="txt-rd">${orders.orderBonusCampaign.giveBonus}</strong> 积分。（<dfn class="crm-rule" onmouseover="$(this).toggleClass('touched')" onmouseout="$(this).toggleClass('touched')">说明<b><sup>&nbsp;</sup>为估算值仅供参考，最后获得积分以系统实际发放为主。发放时间及特殊活动赠送积分请参考 <a href="/help/3_coin.html" target="_blank">积分说明</a> 及相关活动页面说明。</b></dfn>）</p>
	      </c-rt:if>
	      </div>	      
	 		</div>
	 		</c-rt:if>
    <!-- 訂單明細 -->
    <!-- 收件人 -->
    <h3>收货人信息</h3>
    <div class="pay-dateline">
      <ul>
	      <li class="w-1of1 pad-2">
	      	<div> <label for="name"> 姓    名：</label></div>
	      	<div>${orders.receiverName}</div>
	      </li>
	      <li class="w-1of1 pad-2">
	      	<div><label for="add"> 地    址：</label></div>   
	       <c-rt:if test="${empty orders.storeId}">	     
	      	<div>${orders.receiverProvince }，${orders.receiverCity }，${orders.receiverArea }${orders.receiverAddr }，${orders.receiverZip }</div>
	      	</c-rt:if>
	      	 <c-rt:if test="${!empty orders.storeId}">	     
	      	<div>${orders.receiverCity }，${orders.receiverArea }，${orders.receiverAddr }</div>
	      	</c-rt:if>
	      </li>
	      <li class="w-1of1 pad-2">
	      	<div><label for="tel" class="fix">电    话：固定：</label></div>
	      	<div><c-rt:if test="${!empty orders.receiverPhoneArea }">${orders.receiverPhoneArea }-</c-rt:if>${orders.receiverPhone } <c-rt:if test="${!empty orders.receiverExt}">分机：${orders.receiverExt}</c-rt:if>
	      	<strong>&nbsp;&nbsp;手机：</strong>${orders.receiverMobile}
	      </div>
	      </li>
	      <c-rt:if test="${member.applySource eq 'nonmember'}">
	      <li class="w-1of1 pad-2"><label>联络邮箱：</label>${orders.receiverEmail}</li>
	      </c-rt:if>

      </ul>
    </div>
   
    <!-- 收件人 -->  
    <p class="btns-center">
      <a href="<%=ServerValue.getFrontContextPath()%>/index.do" class="textlink1">回首页</a></p>
      ${channelResult}
      ${gwdScript}
  </div>
  </s:else>
  </div>  
   <input type="hidden" name="campaigns" value="${campaigns}"/>
 
<form action="<%=ServerValue.getFrontContextPath()%>/waitactivate.do" method="post" id="waitactivateForm" name="waitactivateForm">
<input type="hidden" id="loginIDF" name="loginID"/>
<input type="hidden" id="mailF" name="mail"/>
 <input type="hidden" name="campaigns" value="${campaigns}"/>
</form>
<div id="divPostOffice"></div> 
<div id="divBank"></div> 
<div id="dialog"></div>
<div id="chkProdInvDialog" title="商品库存不足" class="alert-caution" style="display: none;">
	<p id="resultDiv"></p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="mainProdNotEnough" class="btn-mid">回购物车</a>
		</span>
	</div>
</div>
<div id="chkProdInvObnDialog" title="商品库存不足" class="alert-caution" style="display: none;">
	<p id="resultDivX">xxxxx</p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="mainProdNotEnoughObn" class="btn-mid">回商品页</a>
		</span>
	</div>
</div>
<div id="chkPinvyDialog" title="赠品库存不足" class="alert-caution" style="display: none;">
	<p id="resultDiv"></p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="presentNotEnough" class="btn-mid">回购物车</a>
			<a href="javascript:;" id="inv_submit" class="btn-mid-13" onfocus="blur()">放弃缺货赠品，完成订购</a>
		</span>
	</div>
</div>
<div id="chkPinvyObnDialog" title="赠品库存不足" class="alert-caution" style="display: none;">
	<p id="resultDiv"></p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="presentObnNotEnough" class="btn-mid">回商品页</a>
			<a href="javascript:;" id="inv_Obnsubmit" class="btn-mid-13" onfocus="blur()">放弃缺货赠品，完成订购</a>
		</span>
	</div>
</div>
<div id="chkCouponAndBonusDialog" title="礼券或购物金，请择一使用" class="alert-caution" style="display: none;">
	<p id="resultDiv"></p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="goProd" class="btn-mid" style="display:none;">回商品页</a>
			<a href="javascript:;" id="goCart" class="btn-mid" style="display:none;">回购物车</a>
		</span>
	</div>
</div>
<div id="chkValidateNumDialog" title="驗證碼錯誤訊息" class="alert-caution" style="display: none;">
	<p id="resultDiv"></p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="goValidateProd" class="btn-mid" style="display:none;">回商品页</a>
			<a href="javascript:;" id="goValidateCart" class="btn-mid" style="display:none;">回购物车</a>
		</span>
	</div>
</div>
<div id="alertPayDeadLineDialog" title="特别提醒您" class="alert-caution" style="display: none;">
	<p id="resultDivX">特别提醒您，您的付款期限为：<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${orders.deadline}" /> </strong></p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="alertPayDeadLineDialogbn" class="btn-mid">确定</a>
		</span>
	</div>
</div>
<div id="chkCreditcardPeriodDialog" title="分期付款讯息" class="alert-caution" style="display: none;">
	<p id="resultDiv"></p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="goProd" class="btn-mid" style="display:none;">回商品页</a>
		</span>
	</div>
</div>
<div id="chkGrossProfitRateDialog" title="结帐失败" class="alert-caution" style="display: none;">
	<p id="resultDiv"></p>
	<div align="center">
		<span style="text-align: center;">
			<a href="javascript:;" id="goPage" class="btn-mid">确定</a>
			<input type="hidden" id="returnPage"/>
		</span>
	</div>
</div>
<script type="text/javascript" src="http://s.yaodian100.com/js/rec.js">
{
"mid":27,
"pid":"buy",
"bitem":"${bitem}",
"order":"${orders.orderId}",
"uid":"${member.memberId}"
}
</script>
<c-rt:set var="useBfd" value='<%=ServerValue.getUseBfd()%>'/>
<c-rt:if test="${'on' eq useBfd  and not empty b100item}">
	<script type="text/javascript">
		window.bfd_onload = function() {
			var client = new brs.Client("${bfdCode}");
			var p = new brs.PackedRequest();
			${b100item}
			client.invoke(p);
		}
	</script>
</c-rt:if>